import 'package:flutter/material.dart';
import 'package:oktoast/oktoast.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:xinxuan/utils/color_util.dart';

class TotalUtil {

  static void showSuccess(String message) {
    showToastWidget(Container(
      width: 112.w,
      height: 88.h,
      decoration: BoxDecoration(
        color: bgBlackColor_50,
        borderRadius: BorderRadius.circular(5.w)
      ),
      child: Column(
        mainAxisAlignment: MainAxisAlignment.center,
        crossAxisAlignment: CrossAxisAlignment.center,
        children: [
          Image.asset(
            'assets/icons/icon_success.png',
            width: 28.w,
            height: 28.w,
          ),
          SizedBox(height: 4.h),
          Text(
            message,
            style: TextStyle(
              color: textWhiteColor,
              fontSize: 14.sp
            ),
          )
        ],
      ),
    ));
  }
}